Smush\Core\Modules\Background\Background_Process A

Total Complexity 73
Dependencies 5
Dependents 1
Total lines 590
Lines of code 296
Logical lines of code 167
Comment lines 188
Methods 45
Properties 7

Methods 45

Method Rating Maintainability Complexity Lines of code
handle()
A
47 8 36
maybe_handle()
S
53 6 22
handle_cron_healthcheck()
S
57 4 20
get_memory_limit()
S
62 4 11
get_queue()
S
70 3 6
get_cron_interval_seconds()
S
67 2 7
task_limit_reached()
S
71 2 6
get_lock_duration()
S
73 2 4
schedule_event()
S
64 2 9
time_exceeded()
S
66 2 8
memory_exceeded()
S
64 2 9
cancel()
S
59 1 15
is_process_running()
S
72 2 6
update_queue()
S
73 2 5
update_timestamp()
S
63 1 11
set_tasks_per_request()
S
81 1 3
get_tasks_per_request()
S
82 1 3
dispatch()
S
73 1 5
cleanup()
S
72 1 6
do_action()
S
78 1 3
get_status()
S
82 1 3
get_last_run_transient_key()
S
80 1 3
get_instance_expiry_duration()
S
78 1 3
spawn()
S
70 1 6
get_time_limit()
S
78 1 3
get_handler_mutex_id()
S
80 1 3
mutex()
S
71 1 6
start()
S
67 1 8
clear_last_run_timestamp()
S
81 1 3
set_logger()
S
81 1 3
logger()
S
82 1 3
get_active_instance_option_id()
S
80 1 3
get_active_instance_id()
S
79 1 3
set_active_instance_id()
S
80 1 3
is_active_instance()
S
80 1 3
task()
S
100 1 0
generate_instance_id()
S
79 1 3
cancel_process()
S
77 1 4
clear_scheduled_event()
S
73 1 5
delete_queue()
S
81 1 3
schedule_cron_healthcheck()
S
66 1 8
complete()
S
72 1 6
get_queue_key()
S
80 1 3
is_queue_empty()
S
80 1 3
__construct()
S
63 1 10